package com.oop.demo10;
//子类继承抽象类
public  class Student extends Person{
    public void eat(){
        System.out.println("Student----eat");

    }
    //子类必须重写抽象方法；
    @Override
    public double computePay() {
        return 0;
    }
}
